package hust.ning.xiaonei
{
	public class User
	{
		public function User()
		{
		}
		public var uid:int;
		public var name:String;
		public var sex:int;
		public var tinyurl:String;
		public var mainurl:String;
		
		public static function fromXML(xml:XML):User{
			var u:User= new User();
			u.uid=xml.uid;
			u.name=xml.name;
			u.sex=xml.sex;
			u.tinyurl=xml.tinyurl;
			u.mainurl=xml.mainurl;
			return u;
		}
		
		public function toString():String{
			var s : String="User::";
			s+="uid:"+uid;
			s+="name:"+name;
			return s;
		}

	}
}